package com.example.qrcodecamera;

// WeightRecord.java

public class WeightRecord {
    private String date;
    private String batchNumber;
    private String number;
    private String weight1;
    private String weight2;
    private String weight3;

    // 全参数构造函数
    public WeightRecord(String date, String batchNumber, String number,
                        String weight1, String weight2, String weight3) {
        this.date = date;
        this.batchNumber = batchNumber;
        this.number = number;
        this.weight1 = weight1;
        this.weight2 = weight2;
        this.weight3 = weight3;
    }

    // Getter方法
    public String getDate() {
        return date;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public String getNumber() {
        return number;
    }

    public String getWeight1() {
        return weight1;
    }

    public String getWeight2() {
        return weight2;
    }

    public String getWeight3() {
        return weight3;
    }

    // Setter方法
    public void setDate(String date) {
        this.date = date;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public void setWeight1(String weight1) {
        this.weight1 = weight1;
    }

    public void setWeight2(String weight2) {
        this.weight2 = weight2;
    }

    public void setWeight3(String weight3) {
        this.weight3 = weight3;
    }

    // 可选：toString()方法用于调试
    @Override
    public String toString() {
        return "WeightRecord{" +
                "date='" + date + '\'' +
                ", batchNumber='" + batchNumber + '\'' +
                ", number='" + number + '\'' +
                ", weight1='" + weight1 + '\'' +
                ", weight2='" + weight2 + '\'' +
                ", weight3='" + weight3 + '\'' +
                '}';
    }
}
